package edu.yctc.weblog.controller.impl;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import edu.yctc.weblog.constant.RequestAttributes;
import edu.yctc.weblog.constant.TemplatePath;

@Controller
@RequestMapping(TemplatePath.S + TemplatePath.COMMENTS)
public class CommentController implements edu.yctc.weblog.controller.CommentController {

    @Override
    @GetMapping(TemplatePath.COMMENT)
    public String showCommentList(HttpServletRequest request) {
        request.setAttribute(RequestAttributes.PATH, RequestAttributes.VALUE_COMMENTS);
        return TemplatePath.ADMIN + TemplatePath.S + TemplatePath.COMMENT;
    }

}
